package com.tuliyou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tuliyou.entity.Major;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MajorMapper extends BaseMapper<Major> {
    List<Major> getMajors(String majorName, String parentCode, String level, String degreeType, String years);

    @Select("select * from majors where major_code = #{majorCode} and is_deleted = 0")
    Major getMajorDetail(String majorCode);
}
